<%@ Page Title="" MasterPageFile="~/BackOffice.master" Language="C#" AutoEventWireup="true"
    CodeBehind="CadastroUsuario.aspx.cs" Inherits="MakeIT.SGI.ERP.Apresentacao.CadastroUsuario" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<%@ Register Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35"
    Namespace="System.Web.UI" TagPrefix="asp" %>
<asp:Content ID="cHeadHttpEquiv" ContentPlaceHolderID="headHttpEquiv" runat="server">
</asp:Content>
<asp:Content ID="cHead" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="cCadastro" ContentPlaceHolderID="cphTituloCadastro" runat="server">
    Cadastro de Operadores&nbsp;do&nbsp;Sistema (usuario)
</asp:Content>
<asp:Content ID="cMain" ContentPlaceHolderID="cphMain" runat="server">
    <asp:UpdatePanel ID="upnUsuario" runat="server">
        <ContentTemplate>
            <asp:TabContainer ID="tabUsuario" runat="server" ActiveTabIndex="0">
                <asp:TabPanel ID="tabPesquisa" runat="server" HeaderText="Pesquisa">
                    <ContentTemplate>
                        <div style="width: 100%; background-color: #eeeeff; min-width: 400px; min-height: 300px;">
                            <table border="0" cellpadding="0" cellspacing="0">
                                <tr>
                                    <td valign="middle" style="width: 24px;">
                                        <asp:ImageButton ID="ibPesquisa" runat="server" OnClick="btnPesquisa_Click" ImageUrl="~/App_Themes/Padrao/Imagens/backoffice/search.png"
                                            ToolTip="Executa a pesquisa aplicando os filtros" />
                                    </td>
                                    <td valign="middle" align="left">
                                        Filtros:
                                    </td>
                                    <td>
                                        <div class="FormDiv">
                                            <div class="FormLabel">
                                                C&oacute;digo:</div>
                                            <asp:TextBox ID="txtIdUsuario" MaxLength="11" Width="76px" onkeypress="strictNum();"
                                                onblur="validaDecimal(this.value,11,0);" ForeColor="DarkBlue" Font-Bold="True"
                                                runat="server"></asp:TextBox>
                                            <asp:MaskedEditExtender ID="meetxtIdUsuario" runat="server" Mask="99999999999" TargetControlID="txtIdUsuario"
                                                PromptCharacter="" CultureAMPMPlaceholder="" CultureCurrencySymbolPlaceholder=""
                                                CultureDateFormat="" CultureDatePlaceholder="" CultureDecimalPlaceholder="" CultureThousandsPlaceholder=""
                                                CultureTimePlaceholder="" Enabled="True" />
                                        </div>
                                        <div class="FormDiv">
                                            <div class="FormLabel">
                                                Login:</div>
                                            <asp:TextBox ID="txtUser" MaxLength="45" Width="100px" ForeColor="DarkBlue" Font-Bold="True"
                                                runat="server"></asp:TextBox>
                                        </div>
                                        <div class="FormDiv">
                                            <div class="FormLabel">
                                                Ativo:</div>
                                            <asp:DropDownList ID="ddlAtivo" ForeColor="DarkBlue" Font-Bold="True" runat="server">
                                                <asp:ListItem Text="Todos" Value=" "></asp:ListItem>
                                                <asp:ListItem Text="Sim" Value="S"></asp:ListItem>
                                                <asp:ListItem Text="N&atilde;o" Value="N"></asp:ListItem>
                                            </asp:DropDownList>
                                        </div>
                                        <div class="FormDiv">
                                            <div class="FormLabel">
                                                Filial:</div>
                                            <asp:DropDownList ID="ddlIdFilial" ForeColor="DarkBlue" Font-Bold="True" runat="server"
                                                DataTextField="filial" DataValueField="PKString">
                                            </asp:DropDownList>
                                        </div>
                                    </td>
                                </tr>
                            </table>
                            <hr />
                            <asp:GridView ID="grvResultado" runat="server" AutoGenerateColumns="False" EmptyDataText="N&atilde;o foram encontrados registros nessa pesquisa!"
                                CellPadding="1" ForeColor="#333333" EnableModelValidation="True">
                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                <Columns>
                                    <asp:TemplateField>
                                        <ItemTemplate>
                                            <asp:ImageButton ID="imgbVisualizar" runat="server" OnClick="imgbVisualizar_Click"
                                                ImageUrl="~/App_Themes/Padrao/imagens/backoffice/editar.gif" CommandArgument='<%#Eval("PKString") %>'
                                                ToolTip="Abrir formulário completo" />
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" />
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="idUsuario" HeaderText="C&oacute;digo" DataFormatString="{0:N0}" />
                                    <asp:BoundField DataField="user" HeaderText="Login" />
                                    <asp:TemplateField HeaderText="Ativo?">
                                        <ItemTemplate>
                                            <asp:Label ID="lblativo" runat="server" Text='<%# Eval("ativo")!=null?(bool)Eval("ativo")?"Sim":"N&atilde;o":"" %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                </Columns>
                                <EditRowStyle BackColor="#999999" />
                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333"></RowStyle>
                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                            </asp:GridView>
                        </div>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="tabCadastro" runat="server" HeaderText="Cadastro">
                    <ContentTemplate>
                        <asp:Panel ID="panelCad" runat="server" BackColor="#eeeeee">
                            <div style="width: 100%; min-width: 400px; min-height: 300px;">
                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            <asp:Panel ID="panelBotoes" runat="server">
                                                <asp:Button ID="btnSalvar" runat="server" Enabled="False" ValidationGroup="Salvar"
                                                    OnClick="btnSalvar_Click" Text="Salvar" UseSubmitBehavior="false" />
                                                &nbsp;<asp:Button ID="btnCancelar" runat="server" OnClick="btnCancelar_Click" Text="Cancelar"
                                                    UseSubmitBehavior="false" />
                                                <asp:Button ID="btnEditar" runat="server" Enabled="False" OnClick="btnEditar_Click"
                                                    Text="Editar" UseSubmitBehavior="false" />
                                                &nbsp;<asp:Button ID="btnExcluir" runat="server" Enabled="False" OnClick="btnExcluir_Click"
                                                    Text="Excluir" UseSubmitBehavior="false" />
                                                &nbsp;<asp:Button ID="btnNovo" runat="server" OnClick="btnNovo_Click" Text="Novo"
                                                    UseSubmitBehavior="false" />
                                                <asp:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID="btnExcluir"
                                                    ConfirmText="Confirma a exclus&atilde;o de Operadores&nbsp;do&nbsp;Sistema?">
                                                </asp:ConfirmButtonExtender>
                                                <hr />
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="FormDiv">
                                                <div class="FormLabel">
                                                    C&oacute;digo:</div>
                                                <asp:TextBox ID="txtCadIdUsuario" MaxLength="11" Width="76" onkeypress="strictNum();"
                                                    onblur="validaDecimal(this.value,11,0);" ForeColor="DarkBlue" Font-Bold="true"
                                                    runat="server"></asp:TextBox>
                                                <asp:MaskedEditExtender ID="meetxtCadIdUsuario" runat="server" Mask="99999999999"
                                                    TargetControlID="txtCadIdUsuario" PromptCharacter="" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="FormDiv">
                                                <div class="FormLabel">
                                                    Pessoa:</div>
                                                <asp:DropDownList ID="ddlCadIdPessoa" ForeColor="DarkBlue" Font-Bold="true" runat="server"
                                                    DataTextField="Pessoa" DataValueField="PKString">
                                                </asp:DropDownList>
                                                <asp:RequiredFieldValidator ControlToValidate="ddlCadIdPessoa" InitialValue="-1"
                                                    ErrorMessage="Preenchimento obrigat&oacute;rio." ID="rfvDdlCadIdPessoa" Display="None"
                                                    runat="server" ValidationGroup="Salvar"></asp:RequiredFieldValidator>
                                                <asp:ValidatorCalloutExtender ID="vceDdlCadIdPessoa" runat="server" TargetControlID="rfvDdlCadIdPessoa">
                                                </asp:ValidatorCalloutExtender>
                                                <asp:HyperLink ID="HyperLinkCadIdPessoa" runat="server" NavigateUrl="~/CadastroPessoa.aspx"
                                                    ImageUrl="~/App_Themes/Padrao/Imagens/backoffice/editar.gif" Target="CadastroIdPessoa"
                                                    ToolTip="Editar cadastro"></asp:HyperLink>
                                                <asp:ImageButton ID="ImageButtonCadIdPessoa" runat="server" ImageUrl="~/App_Themes/Padrao/Imagens/backoffice/atualizar.png"
                                                    ToolTip="Atualizar lista" OnClick="atualizarDdlidPessoa" />
                                            </div>
                                            <div class="FormDiv">
                                                <div class="FormLabel">
                                                    Pesquisar Pessoa:</div>
                                                <asp:TextBox ID="txtCadPesquisarPessoa" MaxLength="60" Width="100" ForeColor="DarkBlue"
                                                    Font-Bold="true" runat="server"></asp:TextBox>
                                                <asp:RequiredFieldValidator ControlToValidate="txtCadPesquisarPessoa" ErrorMessage="Preenchimento obrigat&oacute;rio."
                                                    ID="rfvTxtCadPesquisarPessoa" Display="None" runat="server" ValidationGroup="Salvar"></asp:RequiredFieldValidator>
                                                <asp:ValidatorCalloutExtender ID="vceTxtCadPesquisarPessoa" runat="server" TargetControlID="rfvTxtCadPesquisarPessoa">
                                                </asp:ValidatorCalloutExtender>
                                            </div>
                                            <div class="FormDiv">
                                                <div class="FormLabel">
                                                    Pesquisar Filial:</div>
                                                <asp:DropDownList ID="ddlCadFilial" ForeColor="DarkBlue" Font-Bold="true" runat="server"
                                                    AutoPostBack="true" OnSelectedIndexChanged="ddlCadFilial_SelectedIndexChanged"
                                                    DataTextField="filial" DataValueField="PKString">
                                                </asp:DropDownList>
                                                <asp:RequiredFieldValidator ControlToValidate="ddlCadFilial" InitialValue="-1" ErrorMessage="Preenchimento obrigat&oacute;rio."
                                                    ID="rfvDdlCadFilial" Display="None" runat="server" ValidationGroup="Salvar"></asp:RequiredFieldValidator>
                                                <asp:ValidatorCalloutExtender ID="vceDdlCadFilial" runat="server" TargetControlID="rfvDdlCadFilial">
                                                </asp:ValidatorCalloutExtender>
                                            </div>
                                            <div class="FormDiv">
                                                <asp:ImageButton ID="btnPesquisarPessoa" runat="server" OnClick="btnPesquisarPessoa_Click"
                                                    ImageUrl="~/App_Themes/Padrao/Imagens/backoffice/search.png" ToolTip="Executa a pesquisa aplicando os filtros"
                                                    Enabled="false" />
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="FormDiv">
                                                <div class="FormLabel">
                                                    Login:</div>
                                                <asp:TextBox ID="txtCadUser" MaxLength="45" Width="280" ForeColor="DarkBlue" Font-Bold="true"
                                                    runat="server"></asp:TextBox>
                                                <asp:RequiredFieldValidator ControlToValidate="txtCadUser" ErrorMessage="Preenchimento obrigat&oacute;rio."
                                                    ID="rfvtxtCadUser" Display="None" runat="server" ValidationGroup="Salvar"></asp:RequiredFieldValidator>
                                                <asp:ValidatorCalloutExtender ID="vcetxtCadUser" runat="server" TargetControlID="rfvtxtCadUser">
                                                </asp:ValidatorCalloutExtender>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="FormDiv">
                                                <div class="FormLabel">
                                                    Senha:</div>
                                                <asp:TextBox ID="txtCadPass" MaxLength="100" Width="200" TextMode="Password" ForeColor="DarkBlue"
                                                    Font-Bold="true" runat="server"></asp:TextBox>
                                                <asp:CompareValidator ID="cvSenha" runat="server" Operator="Equal" Display="None"
                                                    ErrorMessage="Senha diferente da repeti&ccedil;&atilde;o de senha" ValidationGroup="Salvar"
                                                    ControlToValidate="txtCadPass" ControlToCompare="txtCadPassRepete"></asp:CompareValidator>
                                                <asp:ValidatorCalloutExtender ID="vceTxtCadPass" runat="server" TargetControlID="cvSenha">
                                                </asp:ValidatorCalloutExtender>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="FormDiv">
                                                <div class="FormLabel">
                                                    Repetir a Senha:</div>
                                                <asp:TextBox ID="txtCadPassRepete" MaxLength="100" Width="200" TextMode="Password"
                                                    ForeColor="DarkBlue" Font-Bold="true" runat="server" ControlToValidate="txtCadPassRepete"></asp:TextBox>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <div class="FormDiv">
                                                <div class="FormLabel">
                                                    Ativo:</div>
                                                <asp:DropDownList ID="ddlCadAtivo" ForeColor="DarkBlue" Font-Bold="true" runat="server">
                                                    <asp:ListItem Text="Sim" Value="S"></asp:ListItem>
                                                    <asp:ListItem Text="N&atilde;o" Value="N"></asp:ListItem>
                                                </asp:DropDownList>
                                            </div>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <hr />
                                            <table border="0" cellpadding="0" cellspacing="3">
                                                <tr>
                                                    <td class="FormLabel">
                                                        Data Cadastro:
                                                    </td>
                                                    <td class="FormLabel">
                                                        Cadastrado por:
                                                    </td>
                                                    <td class="FormLabel">
                                                        Data Edi&ccedil;&atilde;o:
                                                    </td>
                                                    <td class="FormLabel">
                                                        Editado por:
                                                    </td>
                                                </tr>
                                                <tr>
                                                    <td class="FormControl">
                                                        <asp:Literal ID="ltDataCadastro" runat="server"></asp:Literal>
                                                    </td>
                                                    <td class="FormControl">
                                                        <asp:Literal ID="ltCadastradoPor" runat="server"></asp:Literal>
                                                    </td>
                                                    <td class="FormControl">
                                                        <asp:Literal ID="ltDataEdicao" runat="server"></asp:Literal>
                                                    </td>
                                                    <td class="FormControl">
                                                        <asp:Literal ID="ltEditadoPor" runat="server"></asp:Literal>
                                                    </td>
                                                </tr>
                                            </table>
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </asp:Panel>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="tabUsuarioxobjeto" runat="server" HeaderText="Usu&aacute;rio&nbsp;X&nbsp;Objeto">
                    <ContentTemplate>
                        <asp:Panel ID="panelUsuarioxobjeto" runat="server" BackColor="#eeeeee">
                            <div style="width: 100%; min-width: 400px; min-height: 300px;">
                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            <div class="FormLabel">
                                                Operadores&nbsp;do&nbsp;Sistema:</div>
                                            <div class="FormControl">
                                                <asp:Literal ID="ltCadUsuarioxobjetoUsuario" runat="server"></asp:Literal>
                                            </div>
                                            <hr />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Panel ID="panelCadUsuarioxobjetoBotoes" runat="server">
                                                <asp:Button ID="btnCadUsuarioxobjetoSalvar" runat="server" Enabled="False" ValidationGroup="UsuarioxobjetoSalvar"
                                                    OnClick="btnCadUsuarioxobjetoSalvar_Click" Text="Salvar" UseSubmitBehavior="false" />
                                                &nbsp;<asp:Button ID="btnCadUsuarioxobjetoCancelar" runat="server" OnClick="btnCadUsuarioxobjetoCancelar_Click"
                                                    Text="Cancelar" UseSubmitBehavior="false" />
                                                <asp:Button ID="btnCadUsuarioxobjetoEditar" runat="server" Enabled="False" OnClick="btnCadUsuarioxobjetoEditar_Click"
                                                    Text="Editar" UseSubmitBehavior="false" />
                                                <hr />
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:GridView ID="gvUsuarioXObjetos" runat="server" AutoGenerateColumns="False" EmptyDataText="N&atilde;o foram encontrados registros!"
                                                CellPadding="1" ForeColor="#333333" GridLines="Both" RowStyle-ForeColor="#333333"
                                                Enabled="false" RowStyle-BackColor="#F7F6F3" OnRowDataBound="gvUsuarioXObjetos_RowDataBound">
                                                <Columns>
                                                    <asp:TemplateField HeaderText="Visivel" ItemStyle-HorizontalAlign="Center">
                                                        <HeaderTemplate>
                                                            <asp:CheckBox ID="cbVisivelTodos" runat="server" AutoPostBack="True" OnCheckedChanged="cbVisivelTodos_CheckedChanged" />
                                                            &nbsp;<asp:Label ID="Label2" runat="server" Text="Visivel"></asp:Label>
                                                            &nbsp;<asp:ImageButton ID="btnResetVisivel" runat="server" ImageUrl="~/App_Themes/Padrao/Imagens/backoffice/reset.png"
                                                                OnClick="btnResetVisivel_Click" ToolTip="Desfazer seleções" />
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:HiddenField ID="hfIdObjeto" runat="server" Value='<%#Eval("PKString") %>' />
                                                            <asp:CheckBox ID="cbVisivel" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:TemplateField HeaderText="Habilitado" ItemStyle-HorizontalAlign="Center">
                                                        <HeaderTemplate>
                                                            <asp:CheckBox ID="cbHabilitadoTodos" runat="server" AutoPostBack="True" OnCheckedChanged="cbHabilitadoTodos_CheckedChanged" />
                                                            &nbsp;<asp:Label ID="Label1" runat="server" Text="Habilitado"></asp:Label>
                                                            &nbsp;<asp:ImageButton ID="btnResetHabilitado" runat="server" ImageUrl="~/App_Themes/Padrao/Imagens/backoffice/reset.png"
                                                                OnClick="btnResetHabilitado_Click" ToolTip="Desfazer seleções" />
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:CheckBox ID="cbHabilitado" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField DataField="descricao" HeaderText="Descri&ccedil;&atilde;o" />
                                                    <asp:BoundField DataField="objeto" HeaderText="Objeto" />
                                                </Columns>
                                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333"></RowStyle>
                                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                <EditRowStyle BackColor="#999999" />
                                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                            </asp:GridView>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                </table>
                                <hr />
                            </div>
                        </asp:Panel>
                    </ContentTemplate>
                </asp:TabPanel>
                <asp:TabPanel ID="tabCadUsuarioxperfil" runat="server" HeaderText="Usu&aacute;rio&nbsp;X&nbsp;Perfil">
                    <ContentTemplate>
                        <asp:Panel ID="panelUsuarioxperfil" runat="server" BackColor="#eeeeee">
                            <div style="width: 100%; min-width: 400px; min-height: 300px;">
                                <table width="100%" border="0" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td>
                                            <div class="FormLabel">
                                                Operadores&nbsp;do&nbsp;Sistema:</div>
                                            <div class="FormControl">
                                                <asp:Literal ID="ltCadUsuarioxoperfilUsuario" runat="server"></asp:Literal>
                                            </div>
                                            <hr />
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Panel ID="panelCadUsuarioxperfilBotoes" runat="server">
                                                <asp:Button ID="btnCadUsuarioxperfilSalvar" runat="server" Enabled="False" ValidationGroup="UsuarioxobjetoSalvar"
                                                    OnClick="btnCadUsuarioxperfilSalvar_Click" Text="Salvar" UseSubmitBehavior="false" />
                                                &nbsp;<asp:Button ID="btnCadUsuarioxperfilCancelar" runat="server" OnClick="btnCadUsuarioxperfilCancelar_Click"
                                                    Text="Cancelar" UseSubmitBehavior="false" />
                                                <asp:Button ID="btnCadUsuarioxperfilEditar" runat="server" Enabled="False" OnClick="btnCadUsuarioxperfilEditar_Click"
                                                    Text="Editar" UseSubmitBehavior="false" />
                                                <hr />
                                            </asp:Panel>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:GridView ID="gvUsuarioXPerfils" runat="server" AutoGenerateColumns="False" EmptyDataText="N&atilde;o foram encontrados registros!"
                                                CellPadding="1" ForeColor="#333333" RowStyle-ForeColor="#333333" RowStyle-BackColor="#F7F6F3"
                                                Enabled="false" OnRowDataBound="gvUsuarioXPerfils_RowDataBound" EnableModelValidation="True">
                                                <Columns>
                                                    <asp:TemplateField HeaderText="Pertence" ItemStyle-HorizontalAlign="Center">
                                                        <HeaderTemplate>
                                                            <asp:CheckBox ID="cbPertenceTodos" runat="server" AutoPostBack="True" OnCheckedChanged="cbPertenceTodos_CheckedChanged" />
                                                            &nbsp;<asp:Label ID="Label1" runat="server" Text="Pertence"></asp:Label>
                                                            &nbsp;<asp:ImageButton ID="btnResetPertence" runat="server" ImageUrl="~/App_Themes/Padrao/Imagens/backoffice/reset.png"
                                                                OnClick="btnResetPertence_Click" ToolTip="Desfazer seleções" />
                                                        </HeaderTemplate>
                                                        <ItemTemplate>
                                                            <asp:HiddenField ID="hfIdPerfil" runat="server" Value='<%#Eval("PKString") %>' />
                                                            <asp:CheckBox ID="cbPertence" runat="server" />
                                                        </ItemTemplate>
                                                    </asp:TemplateField>
                                                    <asp:BoundField DataField="perfil" HeaderText="Perfil" />
                                                </Columns>
                                                <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
                                                <RowStyle BackColor="#F7F6F3" ForeColor="#333333"></RowStyle>
                                                <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
                                                <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
                                                <EditRowStyle BackColor="#999999" />
                                                <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
                                            </asp:GridView>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <hr />
                                        </td>
                                    </tr>
                                </table>
                            </div>
                        </asp:Panel>
                    </ContentTemplate>
                </asp:TabPanel>
            </asp:TabContainer>
        </ContentTemplate>
    </asp:UpdatePanel>
</asp:Content>
